# 面向过程，搜索天气预报
from time import sleep

from selenium import webdriver
from selenium.webdriver.common.by import By

chrome = webdriver.Chrome()
chrome.get("https://www.sogou.com")
sleep(2)
chrome.find_element(By.ID, "query").send_keys("天气预报")
sleep(2)
chrome.find_element(By.ID, "stb").click()
sleep(5)
chrome.quit()
